CRDHresult CRDHreturn control statement CRDHreturninfield message CRDHdropmessages property CRDHduration property CRDHedit script command CRDHenable command CRDHenable menuitem command CRDHenable property BKGDtopic background CRDH& operator CRDH* (multiplication) operator CRDHreset paint CRDHreturnkey message CRDHround function PCRDHcantmodify property QCRDHcantunderstand message TCRDHcell tabular chunk bINFO Clear CommandPROP popupnum 19bkgd data Clear CommandTAIL +T+TXT clearADDD The clea+TXT The clear command clears the currently selected object, and is the scripting equivalent of the Clear menu item on the Edit menu.TAIL Type the+TXT Type the following into the Message Box: select btn 1 copy go to card 6 select fld 2 clear pasteTAIL Applies +TXT /data Applies to global MOCELL10>LST MOCELL10 Copy Command as Command me> Command me> Command mINFO Paste CommandPROP popupnum 64bkgd data Paste CommandTAIL +T+TXT pasteADDD The past+TXT The paste command pastes the currently selected object, and is the scripting equivalent of the Paste menu item on the Edit menu. You must first select the object to paste it.TAIL Type the+TXT Type the following into the Message Box: select btn 1 copy go to card 6 select fld 2 clear pasteTAIL Applies +TXT /data Applies to global MOCELL10>LST MOCELL10 Clear Commandand Copy Command as Command me> Command me> Command nINFO Paste Card CommandPROP popupnum 65bkgd data Paste Card CommandTAIL +T+TXT paste cardADDD NOT AVAI+TXT NOT AVAILABLE IN THE PLAYER The paste card command pastes the currently buffered card.TAIL e the+TXT Type the following into the Message Box: go to card 5 copy card go to stack "backup" paste card The script copies card 5 into the "backup" stack.TAIL Applies +TXT /data Applies to global MOCELL10>LST MOCELL10 Clear Commandand Copy Command as Command me> Command me> Command SoundFile PropertyPROP popupnum 124bkgd data SoundFile PropertyTAIL +TX+TXT set the soundFile of to ADDD The soun+TXT The soundFile property indicates the file name that contains the sound sample data and from which the sound objects gets sample data for the playback. If the sound data has been imported, this property is empty. You can set the soundFile property either by using a script or by clicking on the Sound button in the Sound Info dialog box. Notes: Setting the soundFile of a sound to empty disassociates it from a sound file.TAIL te a+TXT Create a sound. Do not associate it with a sound file. Locate a sound file you wish to associate with the sound. Now type the following statement into the Message Box, replacing the pathname shown with the full pathname of your sound file. For Windows: set the SoundFile of movie 1 to "c:\sounds\mysound.wav" For Macintosh: set the soundFile of sound 1 to "Macintosh HD:Sound:My Sound"TAIL Applies +TXT /data Applies to sounds MOCELL10>LST MOCELL10 MovieFile Propertyerty EINFO Blocking PropertyPROP popupnum 11bkgd data Blocking PropertyTAIL +T+TXT set the blocking of to ADDD PURE+TXT Note: The blocking boolean property is one possible value for the playStyle property of movies, paths, and sounds When blocking is set to true, your movie, path, or sound plays synchronously. This means that all other scripts are suspended until the sound, movie, or path completes playback. When blocking is set to false, your movie, path, or sound plays asynchronously. This means that scripts continue to execute during the object's playback. The blocking boolean property is one of the possible values of the playStyle property. Notes: If you are going to mix two or more sounds, the playStyle property of the sound must not be set to blocking, which means that blocking is set to false.TAIL RE+TXT /data Applies to movies, paths, and sounds PURE>LST MOCELL10 ReverseOnReplay Propertyrty PlayStyle Propertyrty INFO StreamArrived MessagePROP popupnum 45bkgd data StreamArrived MessageTAIL +T+TXT on streamArrived end streamArrivedADDD The stre+TXT The streamArrived message is sent to the movie object after a play command has been issued, when the stream of movie data has begun to arrive at the client computer. One useful application of this message is to display a please wait" graphic up until the time the movie starts streaming, and thus begins playback.TAIL a+TXT Create a bitmap that displays the message please wait". Create a button Play and type the following handler into its script: on mouseUp show cd bmp 1 play cd mov 1 end mouseUp Create a movie object, associate with a movie file and type the following handler into the movie's script: on streamArrived hide cd bmp 1 end streamArrivedTAIL t to +TXT /data Sent to moviesTAIL MOCELL10>LST MOCELL10 Play File Command SystemColors FunctionPROP popupnum 60bkgd data SystemColors FunctionTAIL +T+TXT the systemColors systemColors()ADDD The syst+TXT The systemColors() function returns the maximum number of colors for the screen. Possible values returned by systemColors are: 2 = colorBW 16 = color16 256 = color256 thousands = color16bits millions = color24bits gray = colorgray (16 grays)TAIL To find +TXT To find the number of colors available for your screen, type the following function in the Message Box and press Enter. systemColors()TAIL ELL10>LST MOCELL10 There are no related topics 'INFO TopLeft PropertyPROP popupnum 138bkgd data TopLeft PropertyTAIL +TX+TXT set the topLeft of { | {card | cd} } to ADDD The topLeft property determines the offset to the top-left corner of an imaginary rectangle surrounding an object. The object's topLeft position is measured in pixels and is expressed as an x, y screen coordinate where x and y are positive integers representing pixels. The offset is measured from the top-left corner of the card or, for the window, from the top-left corner of the screen. Notes: You use the topLeft property to determine or change the value of items 1 and 2 of the rectangle property (left, top, right, bottom) . Changing the topLeft property does not change the size of the object.TAIL Notes: You use the topLeft property to determine or change the value of items 1 and 2 of the rectangle property (left, top, right, bottom) . Changing the topLeft property does not change the size of the object.TAIL PURE+TXT /data Applies to all card objects, backgrounds, card windows, message box, toolbar PURE>LST MOCELL10 Bottom Propertyperty BottomRight Propertyerty Left Propertyrtyy Location (Loc) Property Rectangle Propertyerty Right Propertyoperty Top Propertyerty $INFO TitleBar PropertyPROP popupnum 136bkgd data TitleBar PropertyTAIL +TX+TXT set the titleBar to ADDD PURE+TXT The titleBar property determines the visibility of the title bar located at the top of the window. When the titleBar is set to true, it is displayed. If the titleBar is set to false, it is invisible. The visibility of the title bar can also be controlled using the show and hide commands.TAIL PURE+TXT Place the following handler in the script of a stack whose titlebar you wish to hide upon opening of the stack. The handler saves the original status of the titlebar and then resets the titlebar upon exiting the stack. on openStack global saveTitlebar put the titleBar into saveTitlebar set the titleBar to false end openStack on closeStack global saveTitlebar set the titleBar to saveTitlebar end closeStackTAIL PURE+TXT /data Applies to titlebar PURE>LST MOCELL10 Hide {screen element} C Show {screen elements} @ ommand Command CRDH- (minus) operator CRDH-- (comment symbol) CRDH/ (division) operator nolibrarycard field id 1data This stack must be libraried in order to function correctly. If you have not done so, place this stack in the Oracle Media Objects library folder and restart Oracle Media Objects.TAIL OKSCRP on mouseUp dismiss end mouseUp sINFO ColorDepth PropertyPROP popupnum 27bkgd data ColorDepth PropertyTAIL +T+TXT set the colorDepth of to {blackWhite | color16 | color256 | thousands | millions | DYUV | MPEG} | thousands | millionsADDD E+TXT The colorDepth property determines the parameters of the graphic palette for backgrounds, cards, and bitmaps. Possible values for colorDepth are blackWhite, color16, color256, thousands, millions, DYUV, and MPEG. Not all monitors or graphics cards support 256, thousands, or millions of colors, or DYUV. MPEG applies only to cards and backgrounds. Notes: The specified bitmap must contain at least one painted pixel for changes to the value of colorDepth property to take effect.TAIL PURE+TXT Type the following into the Message Box and press Enter: set the colorDepth of card id 2777 to blackWhiteTAIL RE+TXT /data Applies to backgrounds, bitmaps, cards PURE>LST MOCELL10 BackColor Propertyrty ForeColor Propertyrty InkColor Propertyerty TextColor Propertyerty tINFO ColResize PropertyPROP popupnum 25bkgd data ColResize PropertyTAIL +T+TXT set the colResize of to ADDD PURE+TXT The colResize property determines whether the rows and columns of a dataSheet or pickList can be resized in Part mode with the mouse. The default value is true (rows and columns can be resized).TAIL PURE+TXT /data Applies to datasheets, picklists PURE>LST MOCELL10 CantModify Propertyerty qCRDHcolnames property rCRDHcolordepth property sCRDHcolresize property kCRDHclosecard message pCRDHcoldelim property uCRDHcolumn tabular chunk Copy CommandPROP popupnum 25bkgd data Copy CommandTAIL +T+TXT copyADDD The copy+TXT The copy command copies the currently selected object, and is the equivalent of the Copy menu item on the Edit Menu.TAIL Type the+TXT Type the following into the Message Box: select btn 1 copy go to card 6 select fld 2 clear pasteTAIL Applies +TXT /data Applies to global MOCELL10>LST MOCELL10 Clear Commandmand Copy Card Commandfilena Create Stack Commandmman Cut Commandmand Paste Commandmmand Paste Card Commandand Save [a] Copy as Command me> Command xINFO ColWidth PropertyPROP popupnum 26bkgd data ColWidth PropertyTAIL +T+TXT set the colWidth of to ADDD PURE+TXT The colWidth property allows you to set the width property of all columns of a pickList or dataSheet simultaneously. The colWidth is a positive integer that sets the width in pixels of every column. The default width of columns is 150 for pickLists, 100 for dataSheets. The colWidth property is returned as the width in pixels of the first (left) column in a pickList or dataSheet.TAIL PURE+TXT Create a pickList and name it "test". Type the following in the Message Box and press Enter: set the colWidth of pickList "test" to 35TAIL PURE+TXT /data Applies to datasheets, picklists PURE>LST MOCELL10 Width Propertyrtyy RowHeight Propertyerty yINFO CommandKey FunctionPROP popupnum 9bkgd data CommandKey FunctionTAIL ++TXT the commandKey commandKey()ADDD URE+TXT The commandKey function checks whether the Ctrl key is currently pressed (the Command key on the Macintosh). If the Ctrl key is pressed, the function returns down; if the Ctrl key is not pressed, the function returns up. CommandKey can be abbreviated cmdkey. The commandKey function does not perform the action of pressing the Ctrl key; it simply returns a string stating whether the key is currently pressed. Notes: The Command key on the Macintosh keyboard and the Ctrl key on the PC keyboard are equivalent. However, to ensure compatibility across platforms it is necessary to use the commandKey function when scripting.TAIL PURE>LST MOCELL10 OptionKey Functiontion ShiftKey Functiontion zINFO Compact Stack CommandPROP popupnum 23bkgd data Compact Stack CommandTAIL +T+TXT compact stackADDD PURE+TXT The compact stack command retrieves disk space that is not being used by the Oracle Media Objects application. Compact stack removes any fragmentation in the file that the stack occupies on disk. The Stack Info dialog box displays how much free space can be retrieved by compacting the stack.TAIL PURE>LST MOCELL10 There are no related topics wCRDHcolwidth property xCRDHcommandkey function yCRDHcompact stack command }INFO Compound FunctionPROP popupnum 10bkgd data Compound FunctionTAIL +T+TXT compound (, ) the compound of {, }ADDD The comp+TXT The compound mathematical function performs compound interest calculations on the future value of 1. The rate is the interest rate per period, and periods is the number of periods.TAIL Type the+TXT Type the following in the Message Box and press Enter, where is a value: * compound (.20,5)TAIL MOCELL10>LST MOCELL10 Annuity Functiontion ~INFO Contains OperatorPROP popupnum 7bkgd data Contains OperatorTAIL ++TXT contains ADDD The cont+TXT The contains operator determines whether a specified string includes a specified substring. The contains operator is case-insensitive, that is, it compares the string regardless of case. Contains returns true if the second operand is a substring of the first, and false otherwise.TAIL he+TXT Type the following lines in the Message Box and press Enter after each: put "Happy Birthday!" into A put "birthday" into B A contains B Oracle Media Objects returns true in the Message Box because "birthday" is a substring of "Happy Birthday!" Create a field and name it "MyBirthday". Type "Happy Birthday" in field "MyBirthday". Then type the following line in the Message Box and press Enter: field "MyBirthday" contains "birthday"TAIL MOCELL10>LST MOCELL10 Within Operatortion Is [Not] In Operator DontPrint PropertyPROP popupnum 34bkgd data DontPrint PropertyTAIL +T+TXT set the dontPrint of to ADDD NOT AVAI+TXT NOT AVAILABLE IN THE PLAYER When set to true, the dontPrint object property prevents the object from printing when its card is printed. Setting the dontPrint property to true for cards and backgrounds prevents the printing of their respective paint layers.TAIL Create a+TXT Create a new card and name it Print". Use the paint tool to create a circle on the card. Type the following into the Message Box: set the dontPrint of card "Print" to true select "Print Card" under the Fill menu. Your "Print" card will print with no image.TAIL plies +TXT /data Applies to all objects, backgrounds, cards, stacks MOCELL10>LST MOCELL10 CantModify Propertyerty Contiguous PropertyPROP popupnum 28bkgd data Contiguous PropertyTAIL +T+TXT set the contiguous of to ADDD The cont+TXT The contiguous property determines whether or not the legs of a path are connected. If the contiguous property for a path is set to true, the legs remain connected even if they are moved, or if the startPoints or endPoints change; if the contiguous property is set to false, the legs may be moved around independently of one another. Notes: It is possible to specify a particular leg of a path when setting the contiguous property; however, this changes the contiguous property for the entire path rather than just the leg you specified.TAIL +TXT /data Applies to paths MOCELL10>LST MOCELL10 There are no related topics Convert CommandPROP popupnum 24bkgd data Convert CommandTAIL +T+TXT convert to [and datetype] = {seconds, dateitems, [short | long | abbr | abbrev | abbreviated] date, [short | long | abbr | abbrev | abbreviated] time}ADDD E+TXT The convert command converts the data stored in a container from one format to another.TAIL PURE+TXT Create a field and type a number in it. Type the following into the Message Box and press Enter: convert fld 1 to long date Now try: convert fld 1 to dateitemsTAIL PURE+TXT /data Applies to global PURE>LST MOCELL10 Date Functiontion }CRDHcontains operator ~CRDHcontiguous property CRDHcontrollervisible property DataScroll PropertyPROP popupnum 33bkgd data DataScroll PropertyTAIL +T+TXT set the dataScroll of to ADDD URE+TXT The dataScroll property determines whether the scrolling of a pickList or dataSheet is limited to the rows and columns that contain data. If dataScroll is true, the user will be able to scroll to the scrollLimit or to the last row or column that contains data, whichever is less. Note that you can still change the contents of empty rows or columns in your scripts. If dataScroll is false (the default), the user can scroll to the row or column determined by the scrollLimit property.TAIL PURE+TXT /data Applies to datasheets, picklists PURE>LST MOCELL10 ScrollLimit PropertyertyADDD @INFO VisibleCols FunctionPROP popupnum 68bkgd data VisibleCols FunctionTAIL +T+TXT the visibleCols of dataSheet |ADDD The visi+TXT The visibleCols function returns the number of columns in a dataSheet or pickList or dataSheet that are entirely visible es +TXT /data Applies to dataSheets, pickLists MOCELL10>LST MOCELL10 VisibleRows Function topics CRDHexit to top control statement CRDHexp function CRDHexp1 function CRDHfilled property CRDHfind CRDHflipinterval property )CRDHmilliseconds (msecs) function >CRDHmultifont property TCRDHpass control statement CRDHplaymuted property CRDHproperties property CRDHrepeat until Copy Card CommandPROP popupnum 26bkgd data Copy Card CommandTAIL +T+TXT copy cardADDD NOT AVAI+TXT NOT AVAILABLE IN THE PLAYER The copy card command copies the currently visible card, and is the scripting equivalent of the Copy Card menu item on the Edit menu.TAIL Type the+TXT Type the following into the Message Box: go to card 5 copy card go to stack "backup" paste card The script copies card 5 into the "backup" stack.TAIL Applies +TXT /data Applies to global MOCELL10>LST MOCELL10 Clear Commandand Save [a] Copy as Command me> Command CRDHconvert command CRDHcopy command CRDHcopy card command Create Stack CommandPROP popupnum 31bkgd data Create Stack CommandTAIL +T+TXT create stack ADDD NOT AVAI+TXT NOT AVAILABLE IN THE PLAYER The create stack command creates a new stack with the specified name. Notes: Creating a new stack using the create stack command leaves you in the context of the current stack. In contrast, creating a new stack using the Object -> New -> Stack menu item places you in the context of the newly created stack.TAIL Applies +TXT /data Applies to global MOCELL10>LST MOCELL10 Create Background Commandmand Clear Commandand Copy Card Commandfilena Create Card Commanddmman Cut Commandmand Paste Commandmmand Paste Card Commandand Save [a] Copy as Command me> Command CRDHrow tabular chunk CRDHrowdelim property CRDHrowheight property CRDHreverseonreplay property CRDHright property CRDHrotation property Create Background CommandPROP popupnum 27bkgd data Create Background CommandTAIL +T+TXT create background ADDD NOT AVAI+TXT NOT AVAILABLE IN THE PLAYER The create background command creates a new background with the specified name. Notes: Creating a new background using the create background command is equivalent to creating a new background using the Object -> New -> Background menu item command.TAIL plies +TXT /data Applies to global MOCELL10>LST MOCELL10 Clear Commandand Copy Card Commandfilena Create Card Commanddmman Create Stack Commandmman Cut Commandmand Paste Commandmmand Paste Card Commandand Save [a] Copy as Command me> Command Create Card CommandPROP popupnum 28bkgd data Create Card CommandTAIL +T+TXT create cardADDD PURE+TXT NOT AVAILABLE IN THE PLAYER The create card command creates a card with the same background as the currently visible card. This is the equivalent of the New Card menu item under the Object menu.TAIL PURE+TXT Type the following into the Message Box: go to card 5 create card This script creates a new card with the same background as card 5. The current location is card 6.TAIL URE+TXT /data Applies to global PURE>LST MOCELL10 Clear Commandand Copy Card Commandfilena Cut Commandmand Paste Card Command Paste Commandmmandand Save [a] Copy as Command me> Command CRDHcreate background command CRDHcreate card command CRDHcreate command CRDHcontrolpoint property CRDHcos function CRDHcreate menu command Create Menu CommandPROP popupnum 30bkgd data Create Menu CommandTAIL +T+TXT create menu ADDD The crea+TXT The create menu command creates an empty menu that appears in the Oracle Media Objects menu bar. Once the menu has been created, the items in the menu may then be modified using the add menuItem command, or by setting the menuItems property. A submenu can be added to a menu item by issuing the add menu command. The menu is created dynamically; it remains in the menu bar until delete menu has been issued, or the Oracle Media Objects session is terminated. To associate a menu with a particular stack or card, add the create menu command to the appropriate on openStack or on openCard handler.TAIL the+TXT Type the following into the Message Box and press Enter: create menu "Colors" Add the following handler to the script of a stack to associate a menu with a specific stack: on openStack create menu "Animals" put "Sheep" & return & "Goats" & return & "Pigs" into the_items set the menuItems of menu "Animals" to the_items pass openStack end openStackTAIL pplies +TXT /data Applies to menus MOCELL10>LST MOCELL10 Add Menu Commandmand Add MenuItem Commandmand Delete {row/col} Command MenuItems Propertyerty Get CommandPROP popupnum 49bkgd data Get CommandTAIL T+TXT get ADDD PURE+TXT The get command takes a value from a source and places it in the global variable it. get is the same as put into itTAIL E+TXT Type the following lines in the Message Box and press Enter after each: get the time Type the following lines in the Message Box and press Enter after each: get the mouseLoc These statements return the current location of the mouse as two values: the horizontal and vertical offsets from the top left corner of the current card.TAIL PURE>LST MOCELL10 Put Commandmand Set Commanded Command Cursor PropertyPROP popupnum 31bkgd data Cursor PropertyTAIL +T+TXT set the cursor to { | }ADDD The curs+TXT The cursor property determines the shape of the pointer. If you set the cursor to any value besides that pertaining to watch, the change will persist even after the current script ceases to execute. The cursor shape can be set to any one of the following values: _______________________________ Cursor Name: Cursor Number: _______________________________ Advance 1366 Backup 1365 Beginning 1369 BigClock 1416 Browse 1201 Bucket 1161 Busy1 1001 Busy2 1002 Busy3 1003 Busy4 1004 BusyPause1 1373 BusyPause2 1374 BusyStop1 1371 BusyStop2 1372 Check 1408 CommandDot1 1068 CommandDot2 1069 CornerBL 1382 CornerBR 1383 CornerTL 1380 CornerTR 1381 Count1 1051 Count10 1060 Count2 1052 Count3 1053 Count4 1054 Count5 1055 Count6 1056 Count7 1057 Count8 1058 Count9 1059 Cut 1405 Document 1404 Dropper 1166 End 1370 Eraser 1160 Eye 1411 Face 1412 FastForward 1368 FastRewind 1367 Feet 1415 FingerDown 1079 FingerLeft 1081 FingerRight 1080 FingerTopLeft 1083 FingerTopRight 1082 FingerUp 1078 HairCross 1162 Hand 1165 HandDown 1088 HandDownClosed 1089 HandLeft 1092 HandLeftClosed 1093 HandRight 1090 HandRightClosed 1091 HandUp 1086 HandUpClosed 1087 Hexagon 1156 Hourglass1 1031 Hourglass10 1040 Hourglass2 1032 Hourglass3 1033 Hourglass4 1034 Hourglass5 1035 Hourglass6 1036 Hourglass7 1037 Hourglass8 1038 Hourglass9 1039 Info 1403 Lasso 1221 Lock 1406 MacPopup 1410 Magnifier 1167 Magnify 1417 Megaphone 1413 Move 1385 MoveHorizontal 1386 MoveVertical 1387 Movie1 1061 Movie2 1062 Movie3 1063 Movie4 1064 Movie5 1065 Movie6 1066 MovieClip 1375 No 1400 None 1199 Number1 1041 Number10 1050 Number2 1042 Number3 1043 Number4 1044 Number5 1045 Number6 1046 Number7 1047 Number8 1048 Number9 1049 Octagon 1158 Pause 1362 Pencil 1222 Pentagon 1155 Play 1360 PointerLeft1 1072 PointerLeft2 1073 PointerRight1 1070 PointerRight2 1071 PressLeft 1085 PressRight 1084 Question 1402 Record 1363 Rewind 1364 SplitHorizontal 1389 SplitVertical 1388 Spot 1409 Spray 1164 Square 1154 Star 1414 Stop 1361 StopSign 1401 TalkLeft1 1076 TalkLeft2 1077 TalkRight1 1074 TalkRight2 1075 TextBeam 1163 Triangle 1153 Unlock 1407 Watch 1010 Watch1 1011 Watch2 1012 Watch3 1013 Watch4 1014 Watch5 1015 Watch6 1016 Watch7 1017 Watch8 1018 World1 1021 World2 1022 World3 1023 World4 1024 World5 1025 World6 1026 World7 1027 World8 1028TAIL Create a+TXT Create a button and type the following handler into its script: on mouseUp set the cursor to watch repeat until the mouseclick end repeat end mouseUpTAIL /data Applies to global MOCELL10>LST MOCELL10 BusyCursor Propertyerty Is OperatorPROP popupnum 10bkgd data Is OperatorTAIL T+TXT is = ADDD Oracle M+TXT Oracle Media Objects provides two ways to compare for equality between two values, containers, fields, variables, texts, or numbers: the equal sign (=) and the mathematical operator is. Both return true or false depending on the results of the comparison.TAIL Create a+TXT Create a button called "test" with the following script: on mouseDown if the hilite of button "test" is true then beep 2 end mouseDown Note that replacing the word "is" in this script with the equal sign produces the same result.TAIL MOCELL10>LST MOCELL10 Is [Not] In Operatorr CRDHcreate stack command CRDHcursor property CRDHcurvetype property CRDHcut command INFO Log2 FunctionPROP popupnum 25bkgd data Log2 FunctionTAIL +T+TXT the log2 of log2()ADDD This mat+TXT This mathematical function calculates the base-2 logarithm of a number.TAIL log2+TXT put log2(10) into the message box The value 3.321928 is returned. MOCELL10>LST MOCELL10 Exp2 Functiontion 7INFO Untrace CommandPROP popupnum 105bkgd data Untrace CommandTAIL +TX+TXT untraceADDD NOT AVAI+TXT NOT AVAILABLE IN THE PLAYER The untrace command deactivates the script debugger. The debugger is active by default each time Oracle Media Objects is invoked. Performance is enhanced slightly while the script debugger is inactive.TAIL ies +TXT /data Applies to script debugger MOCELL10 Breakpoint Commandmand Untrace Commandnd dINFO Or OperatorPROP popupnum 13bkgd data Or OperatorTAIL or ADDD The logi+TXT The logical or operator returns true if either or both of its operands are true, and false otherwise.TAIL epeat u+TXT repeat until the mouse is up or item 1 of the mouseloc > 200 end repeat MOCELL10>LST MOCELL10 And Operatorator Not OperatorOperator 0INFO Mouse FunctionPROP popupnum 32bkgd data Mouse FunctionTAIL +T+TXT the mouse mouse()ADDD The mous+TXT The mouse function returns the constant up if the mouse button is not being pressed and the constant down if it is being pressed. With this function, you can write scripts that simulate clicking and dragging.TAIL on mouse+TXT on mouseDown repeat while the mouse is down set the location of me to the mouseLoc end repeat end mouseDown LL10>LST MOCELL10 Click At Commandd ClickLoc Functiontion MouseClick Functiontion MouseDown Messagesage MouseUp Messagesage Delete Card CommandPROP popupnum 36bkgd data Delete Card CommandTAIL +T+TXT delete card [noprompt]ADDD The dele+TXT The delete card command deletes the specified card and sends the deleteCard message. You must specify the current card. To delete a card other than the current card, you must first navigate to that card: go card 2 delete card The delete card command functions only on the current card. The optional noprompt flag can be used to suppress the warning, "Do you want to delete the background along with this card?", that pops up if you are trying to delete the last card of a background. Notes: There is no way to undo a deletion!TAIL Applies +TXT /data Applies to cards MOCELL10>LST MOCELL10 Clear Commandand Save [a] Copy as Command CRDHdelete menu command CRDHdelete {row/col} command CRDHdeletebackground message Delete {row/col} CommandPROP popupnum 38bkgd data Delete {row/col} CommandTAIL +T+TXT delete {row | col | cell} [to ] {of | in} { | }ADDD PURE+TXT The delete row/col command deletes tabular chunks from dataSheets and pickLists. If a single row or column is to be deleted, identifies that row or column. If a range of rows or columns is to be deleted, identifies the beginning of the range and identifies the end of the range to be deleted. Rows and columns are numbered starting with 1. When a column is deleted, the user defined name and the info for that column are deleted as well. The colNames for subsequent columns shift along with the data, as do column properties such as info, textColor, textAlign, and width. The tabular chunk expressions are cell, column or col, and row. Notes: There is no way to undo a deletion!TAIL URE+TXT /data Applies to tabular chunks in datasheets and picklists PURE>LST MOCELL10 There are no related topics CRDHrepeat while CRDHrepeat with CRDHreset message command Delete CommandPROP popupnum 35bkgd data Delete CommandTAIL +T+TXT For all objects: delete For paths: delete leg ADDD E+TXT The delete command deletes the specified object and sends the deleteObject message. For paths, the delete command allows you to delete a specific leg from a path. identifies the specific leg number along a designated path. Notes: There is no way to undo a deletion!TAIL URE+TXT /data Applies to all objects PURE>LST MOCELL10 Put Commandmand EndPoints PropertyPROP popupnum 41bkgd data EndPoints PropertyTAIL +T+TXT the endPoints of ADDD Using th+TXT Using the endPoints property, you can get the four values that define the end points of a line style shape. The first two values returned are the coordinates of the start point of the line shape. The second two values returned are the coordinates of the end point of the line shape. The endPoints property is read only.TAIL Applies +TXT /data Applies to line style shapes MOCELL10>LST MOCELL10 There are no related topics DiskSpace FunctionPROP popupnum 13bkgd data DiskSpace FunctionTAIL +T+TXT the diskSpace diskSpace ()ADDD PURE+TXT The diskSpace function returns the amount of total disk space available on the current volume in bytes. Notes: Check the diskSpace before performing an operation that takes up space on the disk. If diskSpace is smaller than the operation requires, the user can be alerted that the operation cannot be performed.TAIL URE+TXT Create a button and place the following handler in its script: on mouseUp if the diskSpace < 100000 then answer "Your disk is getting full" end mouseUp To find the amount of disk space you currently have, type the following into the Message Box and press Enter: the diskSpace PURE>LST MOCELL10 There are no related topics AINFO VisibleRows FunctionPROP popupnum 69bkgd data VisibleRows FunctionTAIL +T+TXT the visibleRows of dataSheet |ADDD The visi+TXT The visibleRows function returns the number of rows in a dataSheet or pickList or dataSheet that are entirely visible. lies +TXT /data Applies to dataSheets, pickLists MOCELL10>LST MOCELL10 VisibleCols Function topics CRDHdeleteobject message CRDHdisable command CRDHdisable menuitem command This Special ContainerPROP popupnum 5bkgd data This Special ContainerTAIL ++TXT this ADDD RE+TXT This contains a generic reference to what is currently on the screen, even if the script is running elsewhere.TAIL PURE>LST MOCELL10 Target Special Containeriner It Special Containeriner Me Special ContainerinerADDD DeleteCard MessagePROP popupnum 9bkgd data DeleteCard MessageTAIL ++TXT on deleteCard end deleteCardADDD PURE+TXT The deleteCard message is sent to a card immediately before the card is deleted. Notes: The deleteCard message is purely informational. Intercepting the message with a handler does nothing to prevent the object from being deleted.TAIL URE+TXT Place the following handler in the script of the current stack and then delete a card. on deleteCard answer the number of fields of this card && "fields will be lost" end deleteCardTAIL PURE+TXT /data Sent to the deleted cardTAIL PURE>LST MOCELL10 Delete {row/col} Command DeleteObject MessagesageADDD Divide CommandPROP popupnum 42bkgd data Divide CommandTAIL +T+TXT divide [ of] by ADDD PURE+TXT There are two methods of dividing two numbers: the arithmetic command divide and the mathematical operator /. The divide command divides the value of [ of] by the value of and puts the result back into [ of] . Notes: The value previously in the container must be a number; it is replaced by the new value.TAIL PURE+TXT Valid uses of the divide operator include: divide field 3 by 12 divide word 1 of bg fld "Salary" by 365 divide annual_salary by num_daysTAIL URE>LST MOCELL10 Div Operator Operator Mod Functiontion / (Division) Operator CRDHfunctionkey message CRDHgo command CRDHhide command print topiccard topic namedata / (Division) OperatorTAIL dscTAIL dscTAIL+RGr shape id 4TAIL id 4TAIL CRDHdismiss command CRDHdiv operator CRDHdivide command CRDHdelete card command CRDHdeletecard message CRDHdiskspace function xINFO PlayCounter PropertyPROP popupnum 80bkgd data PlayCounter PropertyTAIL +T+TXT the playCounter of ADDD The play+TXT The playCounter property is a read only property that indicates the current playback position relative to the playStart, expressed in the units set by the units property.TAIL s +TXT /data Applies to movies, paths, sounds MOCELL10>LST MOCELL10 PlayDuration Propertyrty PlayStart Propertyrty Div OperatorPROP popupnum 8bkgd data Div OperatorTAIL div ADDD The div +TXT The div operator calculates the whole number result, or quotient, of dividing the number to its left by the number to its right. Div ignores any remainder the result is always whole.TAIL e the+TXT Type the following statement in the Message Box and press Enter: 28 div 9 The value 3 is returned.TAIL CELL10>LST MOCELL10 Divide Commandmand Mod Functiontion / (Division) Operator RulerStyle PropertyPROP popupnum 102bkgd data RulerStyle PropertyTAIL +TX+TXT set the rulerStyle to {inches | centimeters | pixels}ADDD PURE+TXT NOT AVAILABLE IN THE PLAYER The rulerStyle property determines the units that are used when the screen ruler is displayed. The rulerStyle also determines the units for gridSize. The default unit is pixels.TAIL PURE+TXT /data Applies to global PURE>LST MOCELL10 GridSize Propertyerty SnapToGrid Propertyerty FlipInterval PropertyPROP popupnum 45bkgd data FlipInterval PropertyTAIL +T+TXT set the flipInterval of [leg of] to ADDD The flip+TXT The flipInterval property indicates the interval (in ticks) during which an object is visible as it traverses the path. Note that you must animate more than one object along the path to see the flipInterval effect. You can set this value to apply to either the entire path or to each leg of the path. If you want to specify a different flipInterval value for each leg of the path, you must also set the playStyle property of the path to a value of useLegTiming.TAIL Applies +TXT /data Applies to paths, legs of paths MOCELL10>LST MOCELL10 Animate From Commandndand Blocking Propertyrty PlayStyle Propertyrty CRDHfreesize property CRDHfullscreen property CRDHfunction control statement CRDHdomenu message CRDHdontprint property CRDHdoubleclick message EditBkgnd PropertyPROP popupnum 37bkgd data EditBkgnd PropertyTAIL +T+TXT set the editBkgnd to ADDD PURE+TXT NOT AVAILABLE IN THE PLAYER EditBkgnd is a global property that determines where painting and editing of an object occurs. If the editBkgnd property is true, those actions occur on the current background, and "(Background)" appears after the stack name in the title bar of the card. If the editBkgnd property is false, those actions occur on the current card. Notes: Selecting the background tool from the toolbar and selecting "Background" from the "Edit" menu are equivalent to setting the property to true.TAIL PURE+TXT To see how the editBkgnd property works, type the following script into a button: on mouseUp get the editBkgnd if it is false then set the editBkgnd to true choose line tool drag from 100,100 to 200,200 choose browse tool set the editBkgnd to false end mouseUp A line is drawn on the current background.TAIL PURE+TXT /data Applies to global PURE>LST MOCELL10 There are no related topics CRDHleft property CRDHlength function CRDHlibraries function CRDHlibrarystack message CRDHline text chunk CRDHlinepattern property CRDHlist function CRDHln function CRDHln1 function Round FunctionPROP popupnum 47bkgd data Round FunctionTAIL +T+TXT the round of round ()ADDD The roun+TXT The round function returns the nearest integer value.TAIL ry roun+TXT Try rounding numbers by typing the following in the Message Box and pressing Enter: the round of 50.75 the round of -6.5 round (3/4)TAIL ELL10>LST MOCELL10 There are no related topics DoubleClick MessagePROP popupnum 12bkgd data DoubleClick MessageTAIL +T+TXT For bitmaps: on doubleClick [] end doubleClick For dataSheets and pickLists on doubleClick [ [, ]] end doubleClick For all other objects: on doubleClick end doubleClick For locked text fields: on doubleClick [ [, ]] end doubleClickADDD URE+TXT The doubleClick message is generated whenever the user double-clicks on an object. When a physical cell of a dataSheet or pickList is clicked, two parameters are sent with the doubleClick message identifying the row and column of the data that was clicked. When a bitmap is clicked, the doubleClick message carries a parameter that describes the color value of the pixel that was clicked. For fields, two parameters are sent with the doubleClick message. The first parameter contains the text of the word that was clicked on. The second parameter contains the position of that word in the field i.e., what number word it is. To get the two parameters, the field's lockText must be set to true. Notes: The first click of a double-click sends mouseDown and mouseUp messages; the second click sends doubleClick and mouseUp messages. The speed of the double-click is determined by system settings. This message is not sent to the palette, sound, path, or timer.TAIL PURE+TXT /data Sent to the double-clicked object or cardTAIL URE>LST MOCELL10 LockText Propertyerty MouseUp Messagesage MouseDown Messagesage Drag CommandPROP popupnum 44bkgd data Drag CommandTAIL +T+TXT drag from to [with CommandKey | OptionKey | ShiftKey]ADDD NOT AVAI+TXT NOT AVAILABLE IN THE PLAYER This command performs the equivalent of dragging the mouse from one location to another. The two locations are screen coordinates. In each case, the first number represents a horizontal offset, and the second represents a vertical offset. Offsets are measured in pixels from the top left corner of the screen. The drag command can be used with the Ctrl, Alt, or Shift keys to create additional effects. For example, to select text in a field using the drag command, you must use with shiftkey. In all other cases, using the with option results in the same action as holding down the specified key while dragging. Notes: You can use the drag command with any tool selected, but drag has no effect on some Paint tools. The actual location of the pointer is not affected by the drag command.TAIL a+TXT Create a button with the following script: on mouseUp choose rect tool drag from 60,60 to 250,250 choose browse tool end mouseUpTAIL MOCELL10>LST MOCELL10 Choose Commandmand Click At Commandd ClickH Functiontion ClickLoc Functiontion ClickV Functiontion Tool Functiontion DropMessages PropertyPROP popupnum 35bkgd data DropMessages PropertyTAIL +T+TXT set the dropMessages of to ADDD DropMess+TXT DropMessages is a boolean property that allows you to specify whether or not to pay attention to the given messageDropTime. If dropMessages is false, then no messages will be discarded, even if they cannot be sent within the maximum latency specified by messageDropTime. Thus, when dropMessages is set to false, this property overrides messageDropTime. The default value of dropMessages is false.TAIL Applies +TXT /data Applies to movies, paths, sounds, timers L10>LST MOCELL10 MessageDropTime Propertyrty Messages Propertyertyy Units Propertyerty GridSize PropertyPROP popupnum 50bkgd data GridSize PropertyTAIL +T+TXT set the gridSize to ADDD PURE+TXT The gridSize property determines the granularity of the snapToGrid property. The gridSize, which may be any positive floating-point number, sets the line spacing in terms of the current screen units (determined by the rulerStyle property). For example, if the rulerStyle is set to "inches", a gridSize of .5 means that the grid lines are spaced a half-inch apart. The default value of the gridSize is 5. Notes: The screen grid takes effect only when the snapToGrid property is set to true.TAIL PURE+TXT Type the following statements into the Message Box to activate a grid with lines one centimeter apart: set the rulerStyle to centimeters set the snapToGrid to true set the gridSize to 1 Type the following statements into the Message Box to activate a grid with lines ten pixels apart: set the rulerStyle to pixels set the snapToGrid to true set the gridSize to 10TAIL PURE+TXT /data Applies to global PURE>LST MOCELL10 RulerStyle Propertyerty SnapToGrid Propertyerty CRDHscrolllimit property CRDHshareddata property CRDHstartarrow property CRDHtextfont property .CRDHtype property Enable CommandPROP popupnum 46bkgd data Enable CommandTAIL +T+TXT For buttons, fields, dataSheets, and pickLists: enable